package org.kukker.list.view;

import org.kukker.event.Event;
import org.kukker.list.KukkerListItemView;
import org.kukker.upcoming.UpcomingEventView;

import android.util.Log;


public class ListItemViewFactory {
	
	public static Class getCreator(Object data) throws ListItemViewFactoryException{
		String className = data.getClass().getName();
		
		//Log.i("debug","ListItemViewCreator, data class name:"+className);
				
		if(className.compareTo("org.kukker.upcoming.UpcomingEvent") == 0){
			return UpcomingEventView.class;
			//Log.i("debug","ListItemViewCreator, view class name:"+clazz.getName());
			
			//return clazz;
		}
		if(className.compareTo("org.kukker.event.Event") == 0){
			return KukkerListItemView.class;
			//Log.i("debug","ListItemViewCreator, view class name:"+clazz.getName());
			
			//return clazz;
		}
		/*else if(className.compareTo("org.kukker.upcoming.UpcomingEvent") == 0){
			
		}
		*/
		
		throw new ListItemViewFactoryException();
	}
}